
#ifndef CONFIG_H
#define CONFIG_H

#include <BSize>
#include <BColor>
#include <BXmlNode>

using namespace BWE;

class Config : public BObject
{
public:
	Config(const BString& name = BString());
	~Config();

	bool load();
	bool save();

	bool isDirty() const;

	void setScrollStep(float scrollStep);
	float scrollStep() const;

	void setSpreadSize(const BSize& spreadSize);
	const BSize& spreadSize() const;

	void setLanguage(const BString& language);
	const BString& language() const;

	void setHeaderPath(const BString& headerPath);
	const BString& headerPath() const;

	void setManualPath(const BString& manualPath);
	const BString& manualPath() const;

private:
	mutable bool	_dirty;
	float			_scrollStep;
	BSize			_spreadSize;
	BString			_language;
	BString			_headerPath;
	BString			_manualPath;

};

#endif
